libimobiledevice-1.3.0^20240916gited9703d-1.fc42
List of Findings
Error: CPPCHECK_WARNING (CWE-758): [#def1]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/ed25519/sha512.c:108: error[shiftTooManyBits]: Shifting 64-bit value by 64 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-127): [#def2]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_conv.c: scope_hint: In function 't_fromb64'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_conv.c:142:13: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_misc.c: scope_hint: In function 't_fshash'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_misc.c:147:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'creat(&dotpath, 384)'
Error: COMPILER_WARNING (CWE-563): [#def4]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_misc.c: scope_hint: In function 't_initrand'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_misc.c:194:12: warning[-Wunused-variable]: unused variable 'ctxt'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_misc.c: scope_hint: In function 't_initrand.part.0'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_misc.c:233:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/urandom", 0)'
Error: GCC_ANALYZER_WARNING: [#def6]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/3rd_party/libsrp6a-sha512/t_misc.c:234:10: warning[-Wanalyzer-fd-use-without-check]: 'read' on possibly invalid file descriptor 'open("/dev/urandom", 0)'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/common/userpref.c: scope_hint: In function 'pair_record_get_item_as_key_data'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/common/userpref.c:1143:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL '*value.data' where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/afc.c: scope_hint: In function 'afc_client_new_with_service_client'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/afc.c:77:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/afc.c: scope_hint: In function 'make_strings_list.part.0'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/afc.c:394:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'list'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/afc.c:395:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'strdup(tokens + (sizetype)j)' where non-null expected
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/afc.c:397:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'list'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/bt_packet_logger.c: scope_hint: In function 'bt_packet_logger_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/bt_packet_logger.c:89:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/companion_proxy.c: scope_hint: In function 'companion_proxy_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/companion_proxy.c:84:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c: scope_hint: In function 'debugserver_command_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:181:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'tmp'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:189:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc((long unsigned int)(argc + 2) * 8)'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c: scope_hint: In function 'debugserver_encode_string'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:286:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'encoded' where non-null expected
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c: scope_hint: In function 'debugserver_client_receive_response'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:419:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'buffer'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:438:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'buffer'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:584:24: warning[-Wanalyzer-malloc-leak]: leak of 'pkt'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:629:32: note: in expansion of macro 'DEBUGSERVER_HEX_ENCODE_FIRST_BYTE'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c: scope_hint: In function 'debugserver_client_set_argv'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:629:32: note: in expansion of macro 'DEBUGSERVER_HEX_ENCODE_FIRST_BYTE'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c: scope_hint: In function 'debugserver_client_set_argv'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:629:32: note: in expansion of macro 'DEBUGSERVER_HEX_ENCODE_FIRST_BYTE'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c: scope_hint: In function 'debugserver_client_set_argv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c: scope_hint: In function 'debugserver_client_set_argv'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:584:24: warning[-Wanalyzer-malloc-leak]: leak of 'pktp'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:606:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'pkt' where non-null expected
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:629:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'p'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:629:32: note: in expansion of macro 'DEBUGSERVER_HEX_ENCODE_FIRST_BYTE'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c: scope_hint: In function 'debugserver_client_set_argv'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:637:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'm' where non-null expected
<built-in>: note: argument 2 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/debugserver.c:637:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'm'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/device_link_service.c: scope_hint: In function 'device_link_service_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/device_link_service.c:124:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/diagnostics_relay.c: scope_hint: In function 'diagnostics_relay_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/diagnostics_relay.c:89:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/file_relay.c: scope_hint: In function 'file_relay_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/file_relay.c:44:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/heartbeat.c: scope_hint: In function 'heartbeat_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/heartbeat.c:84:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/house_arrest.c: scope_hint: In function 'house_arrest_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/house_arrest.c:70:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c: scope_hint: In function 'idevice_get_device_list_extended'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:332:35: warning[-Wanalyzer-null-dereference]: dereference of NULL 'newlist'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:333:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc(24)'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:355:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL '**_7.conn_data' where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c: scope_hint: In function 'idevice_get_device_list'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:403:45: warning[-Wanalyzer-null-dereference]: dereference of NULL 'newlist'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:403:62: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def35]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c: scope_hint: In function 'idevice_from_mux_device'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:473:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'malloc(addrlen)' where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c: scope_hint: In function 'idevice_connect'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:550:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_connection'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:595:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_connection'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c: scope_hint: In function 'idevice_connection_enable_ssl'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.c:1354:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'ssl_data_loc'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def39]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/installation_proxy.c: scope_hint: In function 'instproxy_client_options_add'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/installation_proxy.c:934:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'key' where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/installation_proxy.c:26: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-686): [#def40]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/installation_proxy.c:935:29: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'int' but received 'char (*)[4]' for variadic argument 2 of 'args'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def41]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/lockdown-cu.c: scope_hint: In function 'hkdf_md_expand'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/lockdown-cu.c:209:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'output_block' where non-null expected
/usr/include/openssl/x509.h:29: included_from: Included from here.
/usr/include/openssl/ssl.h:32: included_from: Included from here.
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/idevice.h:30: included_from: Included from here.
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/lockdown-cu.c:35: included_from: Included from here.
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/lockdown-cu.c:194:32: note: in expansion of macro 'MD_ALGO_DIGEST_SIZE'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def42]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/lockdown-cu.c:211:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'output_block' where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/lockdown-cu.c:194:32: note: in expansion of macro 'MD_ALGO_DIGEST_SIZE'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/misagent.c: scope_hint: In function 'misagent_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/misagent.c:101:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobile_image_mounter.c: scope_hint: In function 'mobile_image_mounter_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobile_image_mounter.c:90:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobileactivation.c: scope_hint: In function 'mobileactivation_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobileactivation.c:70:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilebackup.c: scope_hint: In function 'mobilebackup_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilebackup.c:84:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilebackup2.c: scope_hint: In function 'mobilebackup2_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilebackup2.c:84:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilesync.c: scope_hint: In function 'mobilesync_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilesync.c:87:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilesync.c: scope_hint: In function 'mobilesync_anchors_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilesync.c:721:40: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'anchors'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilesync.c:723:40: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'anchors'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def51]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilesync.c: scope_hint: In function 'mobilesync_actions_add'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilesync.c:762:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'key' where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/mobilesync.c:29: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of 'strcmp' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/notification_proxy.c: scope_hint: In function 'np_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/notification_proxy.c:101:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/preboard.c: scope_hint: In function 'preboard_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/preboard.c:84:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/property_list_service.c: scope_hint: In function 'property_list_service_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/property_list_service.c:74:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/restore.c: scope_hint: In function 'restored_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/restore.c:315:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def56]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c: scope_hint: In function '_reverse_proxy_handle_plist_cmd'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c:283:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'dict'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c: scope_hint: In function '_reverse_proxy_handle_plist_cmd'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c: scope_hint: In function '_reverse_proxy_handle_plist_cmd'
/usr/include/sys/types.h:176: included_from: Included from here.
/usr/include/stdlib.h:514: included_from: Included from here.
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c:27: included_from: Included from here.
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c: scope_hint: In function '_reverse_proxy_handle_plist_cmd'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c: scope_hint: In function '_reverse_proxy_handle_plist_cmd'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c: scope_hint: In function 'reverse_proxy_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c:338:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c: scope_hint: In function 'reverse_proxy_client_create_with_port'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/reverse_proxy.c:638:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/sbservices.c: scope_hint: In function 'sbservices_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/sbservices.c:91:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/screenshotr.c: scope_hint: In function 'screenshotr_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/screenshotr.c:81:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/service.c: scope_hint: In function 'service_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/service.c:72:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/syslog_relay.c: scope_hint: In function 'syslog_relay_client_new'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/syslog_relay.c:89:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'client_loc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/webinspector.c: scope_hint: In function 'webinspector_receive_with_timeout'
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/webinspector.c:195:32: warning[-Wanalyzer-malloc-leak]: leak of 'packet'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/webinspector.c:223:41: warning[-Wanalyzer-malloc-leak]: leak of 'packet'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def65]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/src/webinspector.c:230:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'packet' where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def66]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/afcclient.c: scope_hint: In function ‘device_event_cb.part.0’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/afcclient.c:1448:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘udid’ where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/afcclient.c:32: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def67]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup.c: scope_hint: In function ‘mobilebackup_build_path’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup.c:238:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘filename’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: CPPCHECK_WARNING (CWE-457): [#def68]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup.c:518: warning[uninitvar]: Uninitialized variable: file_hash
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup.c: scope_hint: In function ‘main’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup.c:662:30: warning[-Wanalyzer-malloc-leak]: leak of ‘udid’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup2.c: scope_hint: In function ‘get_uuid’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup2.c:342:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘uuid’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def71]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup2.c: scope_hint: In function ‘mobilebackup_factory_info_plist_new’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup2.c:525:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fname’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup2.c: scope_hint: In function ‘main’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebackup2.c:1555:30: warning[-Wanalyzer-malloc-leak]: leak of ‘udid’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def73]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebtlogger.c: scope_hint: In function ‘device_event_cb.part.0’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebtlogger.c:266:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘udid’ where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicebtlogger.c:30: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def74]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicecrashreport.c: scope_hint: In function ‘main’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicecrashreport.c:470:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ping’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicedebug.c: scope_hint: In function ‘main’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicedebug.c:281:54: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newlist’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicedebug.c:468:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘app_argv’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicedebug.c:464:9: note: in expansion of macro ‘log_debug’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def77]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicedevmodectl.c: scope_hint: In function ‘device_event_cb.part.0’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicedevmodectl.c:226:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘udid’ where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicedevmodectl.c:30: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def78]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c: scope_hint: In function ‘main’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:334:21: warning[-Wanalyzer-null-argument]: use of NULL ‘image_path’ where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/include/libimobiledevice/libimobiledevice.h:35: included_from: Included from here.
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:43: included_from: Included from here.
/usr/include/sys/stat.h:205:12: note: argument 1 of ‘stat’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:334:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘image_path’ where non-null expected
/usr/include/sys/stat.h:205:12: note: argument 1 of ‘stat’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:339:51: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘image_sig_path’ where non-null expected
/usr/include/sys/stat.h:205:12: note: argument 1 of ‘stat’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:380:28: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(image_sig_path, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:380:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(image_sig_path, "rb")’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def83]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:398:29: warning[-Wanalyzer-null-argument]: use of NULL ‘image_path’ where non-null expected
/usr/include/sys/stat.h:205:12: note: argument 1 of ‘stat’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def84]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:398:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘image_path’ where non-null expected
/usr/include/sys/stat.h:205:12: note: argument 1 of ‘stat’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:505:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(string_build_path(image_path, plist_get_string_ptr(plist_access_path(build_identity, 4, "Manifest", "PersonalizedDMG", "Info", "Path"), 0), 0), "rb")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/ideviceimagemounter.c:505:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(string_build_path(image_path, plist_get_string_ptr(plist_access_path(build_identity, 4, "Manifest", "PersonalizedDMG", "Info", "Path"), 0), 0), "rb")’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicenotificationproxy.c: scope_hint: In function ‘main’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicenotificationproxy.c:186:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nspectmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicenotificationproxy.c:189:34: warning[-Wanalyzer-malloc-leak]: leak of ‘nspec’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicenotificationproxy.c:197:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nspectmp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicenotificationproxy.c:236:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nspectmp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicenotificationproxy.c:245:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘nspectmp’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def92]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicescreenshot.c: scope_hint: In function ‘get_image_filename’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicescreenshot.c:69:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘basename’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def93]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicescreenshot.c:75:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘basename’ where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicescreenshot.c:33: included_from: Included from here.
/usr/include/time.h:99:15: note: argument 1 of ‘strftime’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def94]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicescreenshot.c:80:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘unique_filename’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicescreenshot.c:92:9: warning[-Wanalyzer-malloc-leak]: leak of ‘unique_filename’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicesetlocation.c: scope_hint: In function ‘main’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicesetlocation.c:178:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicesyslog.c: scope_hint: In function ‘add_filter’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicesyslog.c:87:47: warning[-Wanalyzer-malloc-leak]: leak of ‘procn’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicesyslog.c:120:1: warning[-Wanalyzer-malloc-leak]: leak of ‘procn’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def99]
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicesyslog.c: scope_hint: In function ‘device_event_cb.part.0’
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicesyslog.c:442:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘udid’ where non-null expected
libimobiledevice-1.3.0_20240916gited9703d-build/libimobiledevice-ed9703db1ee6d54e3801b618cee9524563d709e1/tools/idevicesyslog.c:30: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-250.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libimobiledevice-1.3.0^20240916gited9703d-1.fc42 |
store-results-to | /tmp/tmpkffq2liu/libimobiledevice-1.3.0^20240916gited9703d-1.fc42.tar.xz |
time-created | 2024-11-13 01:25:27 |
time-finished | 2024-11-13 01:27:34 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpkffq2liu/libimobiledevice-1.3.0^20240916gited9703d-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpkffq2liu/libimobiledevice-1.3.0^20240916gited9703d-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |